package com.wgchao.authmanager.infrastructure.jpa.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;

/**
 * @ClassName: MenuInfo
 * @author: wgchao
 * @createTime: 2020/5/9 9:36 AM
 * @Description: TODO
 */
@Entity
@Table(name = "am_resource_menu_info", uniqueConstraints =
        {@UniqueConstraint(name = "menuIdentify", columnNames = {"projectIdentify", "menuIdentify"})})
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MenuInfo {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private String projectIdentify;

    private String menuIdentify;

    private String name;

    private String remark;

}
